package com.dj.uphome.web.aspect;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

@Documented
@Constraint(validatedBy = { })
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER })
public @interface StringValid  {
	boolean nullAble() default true;
	boolean autoTrim() default false;
	int min() default 0;
	int max() default Integer.MAX_VALUE;
	String message() default "{fileName}";
	String fieldName();
	String regexp();
	

	Class<?>[] groups() default { };
	Class<? extends Payload>[] payload() default { };
}
